#ifndef EEPROM_H
#define EEPROM_H

#include "stm32f10x.h"

extern uint32_t Epm_initModule(void);
extern uint32_t Epm_wrtieData(uint16_t address, uint8_t data);
extern uint32_t Epm_readData(u16 ReadAddr,u8 *pBuffer,u16 NumToRead);
extern void Epm_Write(uint16_t WriteAddr,uint8_t *pBuffer,uint16_t NumToWrite);
extern void Epm_Read(uint16_t ReadAddr,uint8_t *pBuffer,uint16_t NumToRead);
extern void Epm_WriteLenByte(uint16_t WriteAddr,uint32_t DataToWrite,uint16_t Len);
extern uint32_t Epm_ReadLenByte(uint16_t ReadAddr,uint16_t Len);


extern u8 AT24C02_ReadOneByte(u16 ReadAddr);
extern void AT24C02_WriteOneByte(u16 WriteAddr,u8 DataToWrite);
extern void AT24C02_Read(u16 ReadAddr,u8 *pBuffer,u16 NumToRead);

#endif

